import layout from '@/layout'

export default {
  path: '/employee',
  component: layout,
  meta: {
    permission: 'employee'
  },
  children: [{
    // 默认的子路由
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people',
      keepAlive: true // 自定义的
    }
  }, {
    path: 'detail/:id?',
    component: () => import('@/views/employee/detail.vue'),
    // 当前页面路由不需要展示在左侧菜单，所以配置一个hidden属性为true
    hidden: true
  }]
}
